package com.goodving.guli.bt.model;

import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

/**
 * Created by john on 2015/12/7.
 */
public final class C3904b<T> {
    public final Calendar f19683a;
    public final List<T> f19684b;

    public C3904b(Calendar calendar, int i) {
        this.f19683a = calendar;
        this.f19684b = new ArrayList(i);
    }

    public C3904b(Calendar calendar, List<T> list) {
        this.f19683a = calendar;
        this.f19684b = list;
    }

    public void m25422a(T t) {
        this.f19684b.add(t);
    }

    public String toString() {
        StringBuilder stringBuilder = new StringBuilder(128);
        stringBuilder.append("[[[ " + getClass().getSimpleName() + " ]]]");
        stringBuilder.append("\n    timestamp: " + DateFormat.getDateTimeInstance().format(this.f19683a.getTime()));
        stringBuilder.append("\n  data.size(): " + this.f19684b.size());
        return stringBuilder.toString();
    }
}
